package com.yueyang.sojourn.server.model.vo;

import com.yueyang.sojourn.server.model.po.AttachDetail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author andy.yang
 * @summary 商品价格日历信息
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-17
 */
@Data
@ApiModel("商品价格日历")
public class SojournMerchPriceCalendarVo {
    @ApiModelProperty(value = "商品")
    SojournMerchSimpleVo merch;

    @ApiModelProperty(value = "价格日期")
    private List<SojournMerchPriceMonthVo> priceMonths = new ArrayList<>();

    @ApiModelProperty(value = "默认开始日期")
    private SojournMerchPriceMonthVo.DefaultStartDate defaultStartDate;

    @Data
    public static class SojournMerchSimpleVo{
        @ApiModelProperty(value = "主键id")
        private Long id;
        /**
         * 商品标题
         */
        @ApiModelProperty(value = "商品标题")
        private String title;

        /**
         * 可出行日期的开始日期
         */
        @ApiModelProperty(value = "可出行日期的开始日期")
        private Date availableDateBegin;

        /**
         * 可出行日期的结束日期
         */
        @ApiModelProperty(value = "可出行日期的结束日期")
        private Date availableDateEnd;
        /**
         * 优惠类型
         */
        @ApiModelProperty(value = "优惠类型(枚举值)")
        private List<Integer> sales;
    }
}
